//
//  GroupModel.m
//  QinrenManagers
//
//  Created by easaa on 15/7/23.
//  Copyright (c) 2015年 easaa. All rights reserved.
//

#import "GroupModel.h"

@implementation GroupModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    NSLog(@"%@类这个字段没有定义%@",[NSString stringWithUTF8String:object_getClassName(self)],key);
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"is_default"])
    {
        self.is_default = [NSString stringWithFormat:@"%@",[[NSNumberFormatter alloc] stringFromNumber:value]];
    }
    else if ([key isEqualToString:@"group_type"])
    {
        self.group_type = [NSString stringWithFormat:@"%@",[[NSNumberFormatter alloc] stringFromNumber:value]];
    }
//    else if ([key isEqualToString:@"group_id"])
//    {
//        self.group_id = [NSString stringWithFormat:@"%@",[[NSNumberFormatter alloc] stringFromNumber:value]];
//    }
    else
    {
        [super setValue:value forKey:key];
    }
    
}


@end
